What you're looking at is a Jupyter notebook. These will be the foundation for nearly all of our computational work in the course.
Scientists, engineers, mathematicians, and all sorts of technical folks use Jupyter Notebooks to get work done. That means the tools you're working with (including other parts of Python we'll see) are exactly the same tools being used every day in industry and research. Take a look at this list of interesting Jupyter notebooks to see some neat ones!
A Notebook is made up of cells, like this one. We'll mainly be using two types of cells:
To see how cells work, try double-clicking on this text and seeing what happens.
In [ ]:
print("Inspirational Astronauts")
astronauts = [
"Sally Ride",
"Mae Jemison",
"Ronald McNair",
"Judith Resnick"
]
for astronaut in astronauts:
print("Dr. %s" % astronaut)
In [ ]:
In [ ]: